#include<iostream>

using namespace std;

int ncases;
int a, b;
int sum;
int cont = 1;

void solve() {
   for(int i=a; i<=b; i++) {
      if(i%2 != 0)
         sum += i;
   }
   cout << "Case " << cont++ << ": " << sum << endl;
}

void read() {
   cin >> ncases;
   for(int i=0; i<ncases; i++) {
      sum = 0;
      cin >> a >> b;
      solve();      
   }
}

int main() {
   read();
   return 0;
}
